﻿	<div id="sidebar">
		<ul>
			<?php if ( is_404() || is_category() || is_day() || is_month() ||
						is_year() || is_search() || is_paged() ) {
			?> <li>
			<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
			<?php /* If this is a 404 page */ if (is_404()) { ?>
			<p>The Page you are looking for does not exist.</p>
				
			<?php /* If this is a category archive */ } elseif (is_category()) { ?>
			<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for the day <?php the_time('l, F jS, Y'); ?>.</p>

			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for <?php the_time('F, Y'); ?>.</p>

			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for the year <?php the_time('Y'); ?>.</p>

			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
			<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
			for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

			<?php } ?>
			</div></div></div></div></div>
			</li> <?php }?>

			<li id="rss_link">
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Recommendation",'verygoogle'); ?></h4>
				<ul>
				<li><a href="http://fairyfish.net/planet/">CN WordPress Planet</a></li>
				</ul>
				<br />
				<h4><?php _e("Subscribe",'verygoogle'); ?></h4>
					<table>
						<tbody>
							<tr>
								<td><a style="position:relative" href="http://feed.feedsky.com/charlestang">FeedSky</a></td>
								<td><a style="position:relative" href="http://feeds.feedburner.com/charlestang">FeedBurner</a></td>
							</tr>
							<tr>
								<td><a class="fszhuaxia" href="http://www.zhuaxia.com/add_channel.php?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到抓虾</a></td>
								<td><a class="fbzhuaxia" href="http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到抓虾</a></td>
							</tr>
							<tr>
								<td><a class="fsgoogle" href="http://fusion.google.com/add?feedurl=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Google</a></td>
								<td><a class="fbgoogle" href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Google</a></td>
							</tr>
							<tr>								
								<td><a class="fsyahoo" href="http://add.my.yahoo.com/rss?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Yahoo</a></td>
								<td><a class="fbyahoo" href="http://add.my.yahoo.com/rss?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到Yahoo</a></td>
							</tr>
							<tr>
								<td><a class="fsxianguo" href="http://www.xianguo.com/subscribe.php?url=http://feed.feedsky.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到鲜果</a></td>
								<td><a class="fbxianguo" href="http://www.xianguo.com/subscribe.php?url=http://feeds.feedburner.com/charlestang" target="_blank"><span class="sig_add">[+]</span>订阅到鲜果</a></td>
							</tr>
						</tbody>
					</table>
				</div></div></div></div></div>
			</li>
			<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
			<?php endif; ?>
			<li style="background-color:#dfc">
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("30Days Top 10",'verygoogle'); ?></h4>
				<ul>
				<?php 
					if (function_exists('get_timespan_most_viewed')){
						my_get_timespan_most_viewed('post', 10, 30, true, false, 0);
					} else {
						echo 'Please Active PostViews+ Plugin!';
					}
				?>
				</ul><br />
				<h4><?php _e("Top 10",'verygoogle'); ?></h4>
				<ul>
				<?php
					if (function_exists('get_most_viewed')){
						my_get_most_viewed('post', 10, 0 ,true ,false);
					} else {
						echo 'Please Active PostViews+ Plugin!';
					}
				?>
				</ul>
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4><?php _e("Recent Comments",'verygoogle'); ?></h4>
				<div id="rc_c"></div><!--rc_c for recent comments content-->
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4>Archives</h4>
				<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> 
  					<option value="\"><?php echo attribute_escape(__('Select Month')); ?></option> 
  					<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> 
  				</select>
				</div></div></div></div></div>
			</li>

			<li>
				<div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">
				<h4>Categories</h4>
				<ul>
				<?php wp_list_categories('show_count=1&title_li='); ?>
				</ul>
				</div></div></div></div></div>
			</li>
			

			<?php 
			$cate_before='<li><div class="rd_ul"><div class="rd_ur"><div class="rd_ll"><div class="rd_lr"><div class="in_sb">';
			$cate_after='</div></div></div></div></div></li>';
			wp_list_bookmarks('orderby=rand&limit=20&title_li=&title_before=<h4>&title_after=</h4>&category_before='.$cate_before.'&category_after='.$cate_after);				
			?>

			<li style="line-height:0px;font-size:0px"></li>
			
		</ul>
	</div>

